package com.sumer.brain.sys.service;

import com.sumer.brain.sys.model.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sumer.brain.sys.model.resp.SysMenuResp;

import java.util.List;

public interface SysMenuService extends IService<SysMenu> {

    List<SysMenu> getMenusByUserId(Long userId);

    List<SysMenuResp> buildMenuTree(List<SysMenu> menus);

    List<Long> selectMenuListByRoleId(Long roleId);
}
